<?php
$server = mysql_connect ("localhost","root","");
mysql_select_db("webshop",$server) or die ("ERROR: Could not connect to database.");

$klantnummer = $_GET['klantnummer'];
$adresnummer = $_GET['adresnummer'];
$query = mysql_query("select adressen.postcode,adressen.straatnaam,adressen.straatnummer,adressen.plaats,adressen.land,adrestypen.typennaam from adressen, adrestypen where adressen.typenummer = adrestypen.typennummer and klantnummer = $klantnummer and adresnummer = $adresnummer",$server);
while($row = mysql_fetch_array($query)){
	echo $row['plaats'] . "\n" . $row['straatnaam'] . "\n" . $row['straatnummer'] . "\n" . $row['postcode'] . "\n" . $row['land'] . "
	";
}
?>